<template>
<div>
  <h2>用户名密码登录</h2>
  <p>用户名：<input type="text"></p>
  <p>密码：<input type="text"></p>
  <button>确认</button>

  <h2>第三方登录</h2>
  <button @click="add">微博登录</button>
  <button @click="add">微信登录</button>
  <button @click="add">扣扣登录</button>

</div>
</template>

<script>
export default {
  name: "Party_login",
  data(){
    return{}
  },
  methods:{
    add(){
      let uid = '123'
      let tokne = '123'
      let form = new FormData()
      form.append('uid',uid)
      form.append('token',tokne)
      this.$axios.post('users/Login_API/',form)
        .then(i=>{
          if (i.data.code ==200){
            alert(i.data.mes)
            this.$router.push('zhuye/')
          }
          else {
            alert(i.data.mes)
            this.$router.push('mobile/')
          }
        })
    }
  },
  mounted() {
  }
}
</script>

<style scoped>

</style>
